﻿using AMAP.Domain;
using AMAP.ServiceInterfaces.Common;
using System.Collections.Generic;

namespace AMAP.ServiceInterfaces
{
    public interface IBasketOrderService : IRepositoryService<BasketOrder>
    {
        /// <summary>
        /// Gets and returns the last BasketOrder of the given Client designed by his id
        /// </summary>
        /// <param name="ClientId">Client's Id</param>
        /// <returns>Last BasketOrder of the given Client</returns>
        BasketOrder GetLast(int ClientId);

        /// <summary>
        /// Returns the list of basket order for the current week
        /// </summary>
        /// <returns>The list of BasketOrder for the current week</returns>
        /// <remarks>This function is based on DateTime.Now</remarks>
        IList<BasketOrder> GetCurrentWeekList();
    }
}
